package cn.yyh.org.query;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 杨永航
 * @version 1.0
 * @Title: BaseQuery
 * @Package: cn.yyh.org.query
 * @date 2021/6/18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {
    private Integer currentPage = 1;
    private Integer pageSize = 5;
    private String keyword;
    public Integer getFirst() {
        return (this.currentPage - 1) * this.pageSize;
    }
}
